<template>
  <div class="head">
    <img
      src="https://yanxuan.nosdn.127.net/c5bddb7a683b4549217d06eb51923c62"
      alt=""
    />
    <div class="info">
      <p class="nickname">游客12138</p>
      <p class="membertitle">普通用户</p>
    </div>
    <i class="ewm"></i>
    <div class="supermcEntrance">
      <i class="entrance"></i>
      <div class="word">
        <p class="line1">Pro会员</p>
        <div class="line2">
            <span>立即试用</span>
            <i class="arrow"></i>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "ProfileHead",
};
</script>
<style scoped>
.head {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 135px;
  padding-left: 15px;
  background-image: url(~assets/images/profile/headbg.webp);
  background-size: 100%;
}
.head img {
  vertical-align: middle;
  width: 71px;
  height: 71px;
  border-radius: 50%;
}
.head .info {
  width: 169px;
  padding-left: 15px;
  line-height: 1;
}
.info .nickname {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  margin-bottom: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.info .membertitle {
  font-size: 14px;
  color: #fff;
}
.ewm {
  position: absolute;
  display: inline-block;
  right: 7px;
  top: 29px;
  width: 32px;
  height: 32px;
  background-image: url(~assets/images/profile/jlt.webp);
  background-size: 42px 760.5px;
  background-position: 0 -132px;
}
.supermcEntrance {
  position: absolute;
  right: 0;
  bottom: 23px;
  width: 101.5px;
  height: 42px;
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
  overflow: hidden;
  animation: shake 1s linear 3;
  background-image: linear-gradient(180deg, #574e44 0, #0e0e0e 100%);
}
.supermcEntrance .word {
  float: right;
  width: 59px;
  height: 100%;
  padding: 5px 0;
  color: #f9e0c0;
}
.supermcEntrance .line1 {
  font-size: 13px;
  line-height: 18px;
}
.supermcEntrance .line2 {
  font-size: 10px;
  line-height: 14px;
  vertical-align: middle;
}
.supermcEntrance .entrance {
  position: absolute;
  display: inline-block;
  left: 4.5px;
  top: 7px;
  width: 28px;
  height: 28px;
  background-image: url(~assets/images/profile/jlt.webp);
  background-size: 28px 482.65px;
  background-position: 0 -32.35px;
}
.supermcEntrance .arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  margin-top: -2px;
  background-image: url(~assets/images/profile/jlt.webp);
  background-size: 28px 482.65px;
  background-position: 0 -20px;
}
</style>